r[100],c;main(h,t,n,i){for(gets(r);~scanf("%d",&n);printf("Case #%d: %s\n",++c,*r>r[1]?"Alice":"Bob")){for(i=0;i<n;scanf("%d",r+i++));for(;n-2;n=ceil(n/2.))for(h=0,t=n-1;h<=t;)r[h++]+=r[t--];}}
